package com.itheima.equals;

import java.util.Scanner;

public class Demo2equals {
    public static void main(String[] args) {
        String uesername = "admiin";
        String password = "13545";
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入用户名");
        String scusername = sc.nextLine();
        System.out.println("请输入用户密码");
        String scpassword = sc.nextLine();
        if(uesername.equals(scusername) && password .equals( scpassword) ){
            System.out.println("登录成功");

        }

    }
}
